package cn.fj.data.mapper;

import cn.fj.basic.query.BaseQuery;
import cn.fj.data.domain.Dictionary;
import cn.fj.data.query.DictionaryQuery;
import cn.fj.org.domain.Department;

import java.util.List;

public interface DictionaryMapper {

    /*增加*/
    void add(Dictionary dictionary);

    /*删除*/
    void delete(long id);

    /*修改*/
    void modify(Dictionary dictionary);

    /*查询全部*/
    List<Dictionary> queryAll();

    /*查询单条*/
    Dictionary queryOne();

    /*分页和高级查询的方法*/
    //高级查询
    Integer count(DictionaryQuery dictionaryquery);

    //分页
    List<Dictionary> queryData(DictionaryQuery dictionaryquery);

    //批量删除
    void allDelete(List<Long> ids);

    List<Dictionary> depTree();

    void delete1(Long id);

    /*批量删除*/
    void allDelete1(List<Long> ids);
}
